package com.example.zqathserver.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class LogoutController {

    @GetMapping("/idp/profile/OAUTH2/Redirect/GLO")
    private String logout(String redirctToUrl) {
        System.out.println("redirectUrl: " + redirctToUrl);
        // 获取重定向地址，然后重定向
        return "redirect:" + redirctToUrl;
    }


}
